<template>
    <div class="goodsdesc_container">
        <h3 class="title">{{ infoData.title }}</h3>
        <div class="content" v-html="infoData.content"></div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            id: this.$route.params.id,
            infoData: {},
        }
    },
    methods: {
        getGoodsDesc(){
            this.$http.jsonp('?s=App.Table.FreeFindOne&model_name=goodslist&where=[["id","="," ' + this.id + ' "]]&app_key=4F07D528AB07EE72BD7F7C9263BD6705').then(result => {
                if(result.body.ret === 200){
                    console.log(result.body)
                    this.infoData = result.body.data.data
                }
            })
        }
    },
    created(){
        this.getGoodsDesc()
    }
}
</script>

<style lang="less" scoped>
.goodsdesc_container{
    background-color: #fff;
    padding: 20px;
    .title{
        font-size: 16px;
    }
    .content{
        border-top: 1px solid #e5e5e5;
        margin-top: 20px;
    }
}
</style>
